<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="人力资源管理平台" />
<title>人力资源管理平台</title>
<link type="text/css" rel="stylesheet" href="/TOP2/Public/Admin/adminCss/index.css" />
</head>
<body>
<div class="header">
  <div class="top"> <img class="logo" src="/TOP2/Public/Admin/admin_images/logo.jpg" />
    <ul class="nav">
      <li class="seleli"><a href="<?php echo U('Index/index');?>">首页</a></li>
      <li><a href="<?php echo U('User/index');?>">用户管理</a></li>
      <li><a href="<?php echo U('Goods/index');?>">商品管理</a></li>
      <li><a href="<?php echo U('Category/Index');?>">分类管理</a></li>
      <li><a href="<?php echo U('Order/Index');?>">订单管理</a></li>
      <li><a href="<?php echo U('Comments/Index');?>">评论管理</a></li>
      <li><a href="<?php echo U('Advertising/Index');?>">前台广告</a></li>
    </ul>
  </div>
</div>

<div class="container1">
  <div class="leftbar">
    <div class="lm01"> <img class="peptx" src="/TOP2/Public/Admin/admin_images/tximg.jpg" />
      <div class="pepdet">
        <p class="pepname"><?php echo ($_SESSION['admin_user']['name']=='administrator'?'超级管理员':'用户名错误'); ?></p>
        <p>超级管理员</p>
        <p><a href="<?php echo U('Login/Loginout');?>">_退出_</a></p>
      </div>
      <div class="clear"></div>
    </div>
	<div class="lm02">
      <div class="title"><img class="icon" src="/TOP2/Public/Admin/admin_images/dataicon.jpg" />
        <h2>日历</h2>
      </div>
      <div class="detail"> <img class="" src="/TOP2/Public/Admin/admin_images/kj_01.jpg" /> </div>
    </div>
    <div class="lm03">
      <div class="title"><img style="padding-right:5px;" class="icon" src="/TOP2/Public/Admin/admin_images/weaicon.jpg" />
        <h2>天气</h2>
      </div>
      <div class="detail"> <img class="" src="/TOP2/Public/Admin/admin_images/kj_02.jpg" /> </div>
    </div>
  </div>
  <div class="mainbody">
    <!-- <div class="currmenu">
      <ul class="rig_nav">
        <li class="rig_seleli"><a href="#">当前</a><span> x </span></li>
        <li><a href="#">个人中心</a></li>
        <li><a href="#">绩效管理</a></li>
        <li><a href="#">绩效计划制定</a></li>
      </ul>
    </div> -->
    <div class="adtip">
      <div class="tip">
        <p class="goom">早上好，管理员！</p>
        <p>您目前有<span>15</span>件商品未上架，<span>1</span>条订单未处理！</p>
      </div>
      <div class="adv">
        <p>麦迪文注册成为会员！.....</p>
        <span> x </span> </div>
    </div>

 <div class="rig_link">
      <ul>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_01.jpg" alt="" title=""></a></li>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_02.jpg" alt="" title=""></a></li>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_03.jpg" alt="" title=""></a></li>
        <li><a href="#"><img src="/TOP2/Public/Admin/admin_images/img_04.jpg" alt="" title=""></a></li>  
      </ul> 
    </div>
 
   
    <div class="rig_lm03">
      <div class="title"><img src="/TOP2/Public/Admin/admin_images/listicon.jpg" class="icon" style="padding-top:13px;">
        <h2>商品管理中心</h2>
      </div>
     
      <div class="detail">
        <div class="inner03">
          <div id="tabCot_product" class="zhutitab">
            <div class="tabContainer">
             <input type="text" name="" class="tabContainer_in1" /> <input type="submit" value="搜索" class="tabContainer_in2" />
              <div class="clear"></div>
            </div>
            <div id="tabCot_product_1" class="tabCot" >
              <table class="tabindex" width="1063" border="0" cellpadding="0" cellspacing="0" align="center">
              
                <tr><!--         <span class="titlab">库存</span><span class="xila">&or;</span> -->
                  <th width="80" bgcolor="#f8f8f8" scope="col">ID</th>
                  <th width="130" bgcolor="#f8f8f8" >用户名</th>
                  <th width="380" bgcolor="#f8f8f8" scope="col">内容</th>
                  <th width="100" bgcolor="#f8f8f8" scope="col">发表时间</th>
                  <th width="150" bgcolor="#f8f8f8" scope="col">操作</th>
                </tr>
                <?php if(is_array($goodslist)): foreach($goodslist as $key=>$val): ?><tr>
                  <td bgcolor="#FFFFFF"><?php echo ($val['gid']); ?></td>
                  <td class="datacol" bgcolor="#FFFFFF"><?php echo ($val['gname']); ?></td>
                  <td bgcolor="#FFFFFF"><img src="/TOP2<?php echo ($val['giname']); ?>"></td>
                  <td bgcolor="#FFFFFF"><?php echo ($val['cname']); ?></td>
                  <td class="yccol" bgcolor="#FFFFFF"><?php echo ($val['gp']); ?></td>
                  <td class="yccol" bgcolor="#FFFFFF"><?php echo ($val['gs']); ?></td>
                  <td class="czcol" bgcolor="#FFFFFF">
                      <?php if($val['gbast']==1): ?><a href="<?php echo U('Goods/Ubast');?>?id=<?php echo ($val['gid']); ?>">上架</a>
                      <?php elseif($val['gbast']==0): ?><a href="<?php echo U('Goods/Ubast');?>?id=<?php echo ($val['gid']); ?>">下架</a><?php endif; ?>
                 </td>
                  <td bgcolor="#FFFFFF">
                      <?php if($val['gnew']==1): ?><a href="<?php echo U('Goods/Unew');?>?id=<?php echo ($val['gid']); ?>">新品</a>
                      <?php elseif($val['gnew']==0): ?><a href="<?php echo U('Goods/Unew');?>?id=<?php echo ($val['gid']); ?>">否</a><?php endif; ?>
                  </td>
                   <td bgcolor="#FFFFFF">
                      <?php if($val['ghost']==1): ?><a href="<?php echo U('Goods/Uhot');?>?id=<?php echo ($val['gid']); ?>">热销</a>
                      <?php elseif($val['ghost']==0): ?><a href="<?php echo U('Goods/Uhot');?>?id=<?php echo ($val['gid']); ?>">否</a><?php endif; ?>
                  </td>
                  <td class="czcol" bgcolor="#FFFFFF"><?php echo (date('Y-m-d',$val["gtime"])); ?></td>

                  <td bgcolor="#FFFFFF"><a href="<?php echo U('Goods/update');?>?id=<?php echo ($val['gid']); ?>">详情</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('Goods/update');?>?id=<?php echo ($val['gid']); ?>">修改</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('Goods/delete');?>?id=<?php echo ($val['gid']); ?>" class="yccol">删除</a></td>
                </tr><?php endforeach; endif; ?>
              <tr>
                <th colspan="11">
                  <?php echo ($show_ye); ?>
                </th>
              </tr>
              </table>

              <div class="fanye">
                <p class="fytip">联系客服 @15821203194</p>
                <div class="yem">
                  <ul>
                    <li><a href="#">First</a></li>
                    <li><a href="#">&lt;</a></li>
                    <li class="sellify"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">&gt;</a></li>
                    <li><a href="#">Last</a></li>
                  </ul>
                </div>
              </div>
            </div>
            <div id="tabCot_product_2" class="tabCot"  style="display: none;"> 2222222222 </div>
            <div id="tabCot_product_3" class="tabCot"  style="display: none;"> 3333333333 </div>
            <script language="JavaScript" type="text/javascript" src="js/tab.js"></script> 
          </div>
        </div>
      </div> 
    </div>
  </div>
</div>
<div class="footer"></div>
</body>
</html>